//
//  Segment.h
//  GeoData
//
//  Created by zhenhua zhou on 12-7-7.
//  Copyright (c) 2012年 ECUST. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Waypoint.h"

@interface Segment : NSObject
{
    NSMutableArray * mWaypoints;
}

@property(nonatomic, retain) NSString * Name;
@property(nonatomic, retain) NSString * Description;
@property(nonatomic) int TurnType;
@property(nonatomic, retain) NSString * TurnPoint;

@property(nonatomic) int32_t Length;
@property(nonatomic) int32_t TrafficLevel;
@property(nonatomic, retain) NSMutableArray * Waypoints;

@property(nonatomic, retain) GeoPos * MaxPos;
@property(nonatomic, retain) GeoPos * MinPos;

- (Segment *) init;
- (void) dealloc;
- (void) addwaypoint:(Waypoint *)obj;
- (void) insertWaypoint:(Waypoint *)obj atIndex:(int32_t)index;
- (int) getDistance;


@end
